package com.yuncheng.spcyApi.service;

import com.yuncheng.common.base.service.BaseService;
import com.yuncheng.spcyApi.dto.FlowJobHistoryDto;
import com.yuncheng.spcyApi.entity.SpcySqsxJob;
import com.yuncheng.spcyApi.vo.common.PageVo;
import com.yuncheng.spcyApi.vo.flow.SpcyJobSxVo;
import com.yuncheng.spcyApi.vo.flow.SpcyJobXqVo;

import java.util.List;

/**
 * @Description: 审评查验申请事项的流转记录
 * @Author: csx
 * @Date: 2023-03-01
 * @Version: V1.0
 */
public interface ISpcySqsxJobService extends BaseService<SpcySqsxJob> {
    String getSqsxLzjlHjmc(String sqsxId);

    /** 获取流程待办列表数量 */
    long getDbJobListSize(PageVo pageVo, String userid, String flcmc);

    /**
     * 获取流程列表
     * @param pid
     * @param fhjmc
     * @param flcmc
     * @return
     */
    List<SpcySqsxJob> getJobListByHjmc(String pid, String fhjmc, String flcmc);

    /**
     * 查询流程任务列表排序
     * @return
     */
    List<SpcySqsxJob> selectJobListByFpidInOrder(String pid, String flcmc);

    /**
     * 查询流程任务列表不排序
     * @return
     */
    List<SpcySqsxJob> selectJobListByFpidInNotOrder(String pid, String fhjmc, String flcmc);

    /** 查询流程详情-根据id */
    SpcyJobXqVo selectJobInfoById(String id);

    /** 查询待办任务id */
    List<String> selectDbIdByFpidAndFhjmc(String fpid, String fhjmc);

    /** 查询历史流程记录列表 */
    List<FlowJobHistoryDto> selectHistoryListByFpidAndFlcmc(String fpid, String flcmc);

    /** 查询流程任务时限相关内容 */
    List<SpcyJobSxVo> selectDbJobSxListByFpid(String fpid, String fhjmc, String flcmc);
}
